<!DOCTYPE>
<html>
<head>
    <title>www.jb51.net js打字效果</title>
    <meta charset="utf-8">
</head>
<style type="text/css">
    body{
        background-color: black;
        color: #f9aaf5;
    }
    div {
          width: 980px;
          margin: 10px auto;
          background: #F3E6EA;
          border: 2px outset #f9c6aa;
          color: green;
    }
</style>
<script type="text/javascript">
    var i = 1;

    function write() {
        var id = document.getElementById("main");
        var msg =
            "Hello My Tina <br/>" +
            "<p></p>" +

            "　　1、A contented mind is the greatest blessing a man can enjoy in this world.<br/>" +

            "　　知足是人生在世最大的幸事。<br/>" +

            "　　——Joseph Addison（美国作家艾迪生）<br/>" +
            "<p></p>" +
            "　　2、If you would know the value of money, go and try to borrow some.<br/>" +

            "　　要想知道钱的价值，就想办法去借钱试试。<br/>" +

            "　　——Benjamin Franklin（美国总统富兰克林）<br/>" +
            "<p></p>" +
            "　　3、If you wish to succeed, you should use persistence as your good friend,<br/>" +

            "　　experience as your reference, prudence as your brother and hope as your sentry.<br/>" +

            "　　如果你希望成功，当以恒心为良友，以经验为参谋，以谨慎为兄弟，以希望为哨兵。<br/>" +

            "　　——Thomas Edison（美国发明家爱迪生）<br/>" +
            "<p></p>" +
            "　　4、Health is certainly more valuable than money,<br/>" +

            "　　because it is by health that money is procured.<br/>" +

            "　　健康当然比金钱更为重要，因为我们所赖以获得金钱的就是健康。<br/>" +

            "　　——Samuel Johnson（英国作家约翰逊）<br/>" +
            "<p></p>" +

            "　　5、That man is the richest whose pleasure are the cheapest.<br/>" +

            "　　能处处寻求快乐的人才是最富有的人。<br/>" +

            "　　——Henry David Thoreau（美国作家梭罗）<br/>" +
            "<p></p>" +

            "　　6、Sometimes one pays most for the things one gets for nothing.<br/>" +

            "　　有时候一个人为不花钱得到的东西付出的代价最高。<br/>" +

            "　　——Albert Einstein（美国科学家爱因斯坦）<br/>" +
            "<p></p>" +

            "　　7、Will, work and wait are the pyramidal cornerstones for success.<br/>" +

            "　　意志、工作和等待是成功的金字塔的基石。<br/>" +

            "　　——Louis Pasteur（法国化学家巴斯勒）<br/>" +
            "<p></p>" +

            "　　8、All the splendor in the world is not worth a good friend.<br/>" +

            "　　人世间所有的荣华富贵不如一个好朋友。<br/>" +

            "　　——Voltaire（法国思想家伏尔泰）<br/>" +
            "<p></p>" +

            "　　9、There is a great different between exposure of<br/>" +

            "　　the mind and that of the body.<br/>" +

            "　　表露思想和展露身体之间存在极大的不同。<br/>" +

            "　　——William Hazlitt（英国批评家散文家哈滋里特）<br/>" +
            "<p></p>" +

            "　　10、To travel hopefully is a better thing than to arrive,<br/>" +

            "　　and the true success is to labor.<br/>" +

            "　　怀着希望去旅行比抵达目的地更愉快；而真正的成功在于工作。<br/>" +

            "　　——Robert Louis Stevenson（英国作家史蒂文森）<br/>" +
            "<p></p>" +

            "　　11、The greater a man is, the more distasteful is praise and flattery to him.<br/>" +

            "　　一个人越伟大，对表扬和奉承就越反感。<br/>" +

            "　　——John Burroughs（美国博物学家巴勒斯）<br/>" +
            "<p></p>" +

            "　　12、I might say that success is won by three things:<br/>" +

            "　　first, effort; second, more effort; third, still more effort.<br/>" +

            "　　可以说成功要靠三件事才能赢得：努力，努力，再努力。<br/>" +

            "　　——Thomas Hardy（英国诗人小说家哈代）<br/>" +
            "<p></p>" +

            "　　13、Success often depends upon knowing how long it will take to succeed.<br/>" +

            "　　成功常常取决于知道需要多久才能成功。<br/>" +

            "　　——Charles Montesquieu（法国思想家孟德斯鸠）<br/>" +
            "<p></p>" +

            "　　14、Only those who have the patience to do simple things<br/>" +

            "　　perfectly ever acquire the skill to do difficult things easily.<br/>" +

            "　　只有有耐心圆满完成简单工作的人，才能够轻而易举的完成困难的事。<br/>" +

            "　　——Friedrich Schiller（德国剧作家诗人席勒）<br/>" +
            "<p></p>" +

            "　　15、You have to believe in yourself. That's the secret of success.<br/>" +

            "　　你必须相信自己，这是成功的关键。<br/>" +

            "　　——Charles Chaplin（美国演员卓别林）<br/>" +
            "<p></p>" +
            "　　16、A man is not old as long as he is seeking something.<br/>" +

            "　　A man is not old until regrets take the place of dreams.<br/>" +

            "　　只要有一个人还有所追求，他就没有老。直到后悔取代了梦想，一个人才算老。<br/>" +

            "　　——J. Barrymore（巴里穆尔）";
        var len = msg.length;
        var msg1 = msg.substring(0, i);
        id.innerHTML = msg1;
        if (i == len) {
            clearInterval(t)
        } else
            i++;
    }

    function time1() {
        var t = setInterval(function () {
            write()
        }, 30);
    }
</script>
<body onload=time1()>
<div id="main"></div>
</body>
</html>